package cn.wsalix.api.entity;

import javax.persistence.Entity;
import javax.persistence.Table;

import lombok.Data;
import lombok.EqualsAndHashCode;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import cn.anlaser.entity.SimpleEntity;

/**
 * @author jskyme
 * 接口
 */
@Entity
@Table(name = "HICKEY")
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
@DynamicUpdate
@DynamicInsert
@Data
@EqualsAndHashCode(callSuper = false)
public class Hickey extends SimpleEntity {

	/**
	 * 接口地址
	 */
	private String url;
	
	/**
	 * 请求类型 GET,POST
	 */
	private String requestType;
	
	/**
	 * 访问次数
	 */
	private int visitedNum;
	
	
}
